{include file='yxworker/w_head2'}
        <script src="{$_G['URL']['WORKER_CSS']}js/lCalendar.js"></script>
        <link rel="stylesheet" href="{$_G['URL']['WORKER_CSS']}css/lCalendar.css">
        <style type="text/css">
            input {
                width: 100%;
                height: 0.4rem;
                font-size: 0.3rem;
                /*border: 1px solid #19b5ee;*/
                border-radius: 5px;
                margin-top: 0.05rem;
                padding: 0.05rem 0.1rem;
            }
            .item .showBar { width:14px; display:inline-block; vertical-align:-6px; margin-right:.05rem;}     
            .line11 { line-height:1.1rem;}
            .lmsz_cont {padding: 0 0.3rem 0.3rem;}  
        </style>
    </head>
    <body>
        <header class="order_header" style="font-size: 0.4rem;">
            <div class="go_back">
                <a style="color: #ffffff"  href="javascript:history.go(-1)">
                <img src="{$_G['URL']['WORKER_CSS']}images/order_03.png">
                返回</a>
            </div>
            活动基本设置
        </header>


        <form action='{php echo "/".createMobileUrl('w_setbase',array("op"=>"save","themeid"=>$themeid));}' method="post">  
        <div class="s_items s_bg">
            <div class="s_title">
                <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
                活动信息
            </div>
        </div>
            <div class="lmsz_cont">
                <div class="item">
                    <p><span style="color: #ff0000">*</span>活动主标题</p>
                    <input type="text" name="title" placeholder="活动主标题,精而简,建议15字左右,尽量不要超27个汉字,不可包含特殊符号" value="{$theme['title']}" />
                </div>
                <div class="item">
                    <p>活动副标题</p>
                    <input type="text" placeholder="活动副标题,建议40字以内,不可包含特殊符号" name="desc"  value="{$theme['desc']}" />
                </div>
                <div class="item">
                    <p>活动结束时间</p>
                    <input id="demo2" type="text" readonly="" name="endtime" placeholder="活动结束时间" value="{php echo date('Y-m-d H:i',$theme['endtime']);}" data-lcalendar="{php echo date('Y')-1;}-01-01,{php echo date('Y')+1;}-12-31" />
                </div>
                <div class="item line11">
                    <p style=" display:inline-block; margin-right:.2rem;">活动状态</p>
                   <input class="showBar" name="status" value="0" {if $theme['status']==0} checked="checked"{/if} type="radio"> &nbsp;&nbsp;暂停&nbsp;&nbsp;&nbsp;&nbsp;<input class="showBar" name="status" value="1" {if $theme['status']==1} checked="checked"{/if} type="radio"> &nbsp;&nbsp;启用&nbsp;&nbsp;&nbsp;&nbsp;<input class="showBar" name="status" value="2" {if $theme['status']==2} checked="checked"{/if} type="radio"> &nbsp;&nbsp;结束
                </div>
            </div>



        <div class="s_items s_bg">
            <div class="s_title">
                <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
                价格设置
            </div>
        </div>

            <div class="lmsz_cont">

            {if $system['ruanjian']==1 || $system['ruanjian']==3 && $system['softstyle']==4}
                <div class="item">
                    <p>报名费</p>
                    <input type="number" step="0.01" placeholder="价格为空为免费报名" name="joinfee"  value="{$config['joinfee']}" />
                </div>
                <div class="item">
                    <p>活动限购人数</p>
                    <input type="number" step="0.01" placeholder="" name="renshu"  value="{$config['renshu']}" />
                </div>
                <input type="hidden" name="maxcount" value="1" />
                <input type="hidden" name="maxcountall" value="1" />
            {elseif $system['softstyle']==5}
                <div class="item">
                    <p>全款加盟价</p>
                    <input type="number" step="0.01" placeholder="如：支付999元全款加盟" name="groupprice"  value="{$config['groupprice']}" />
                </div>
                <div class="item">
                    <p>定金听课价</p>
                    <input type="number" step="0.01" placeholder="如：预付9.9元线上听课" name="primeprice"  value="{$config['primeprice']}" />
                </div>
                <div class="item">
                    <p>线上定金</p>
                    <input type="number" step="0.01" placeholder="线上定金为空则以上上面实际金额支付" name="joinfee"  value="{$config['joinfee']}" />
                </div>
            {else}
                {if $system['ruanjian'] == '0'}
                <div class="item">
                    <p>市场价</p>
                    <input type="number" step="0.01" placeholder="市场价为空则不显示折扣价,即首图下方原价多少,几人团多少价的提示不显示" name="marketprice"  value="{$config['marketprice']}"/>
                </div>
                {/if}
                <div class="item">
                    <p>拼团价{if $system['ruanjian'] == '4'}①{/if}</p>
                    <input type="number" step="0.01" placeholder="" name="groupprice"  value="{$config['groupprice']}" />
                </div>
                {if $system['ruanjian'] == '4'}
                <div class="item">
                    <p>拼团价②</p>
                    <input type="number" step="0.01" placeholder="" name="groupprice2"  value="{$config['groupprice2']}" />
                </div>
                {/if}
                <div class="item">
                    <p>单买价</p>
                    <input type="number" step="0.01" placeholder="" name="primeprice"  value="{$config['primeprice']}" />
                </div>
                {if $system['jiage'] <1 }
                <div class="item">
                    <p>定金</p>
                    <input type="number" step="0.01" placeholder="" name="joinfee"  value="{$config['joinfee']}" />
                </div>
                {else}
                <div class="item">
                    <p>定金描述</p>
                    <input type="text" placeholder="如：拍摄类型 产品类型 服务类型" name="duojiagetips"  value="{$config['duojiagetips']}" />
                </div>
                <div class="item">
                    <p>定金1：名称</p>
                    <input type="text" placeholder="如：婚纱照收100元，儿童/写真收50元" name="joinname"  value="{$config['joinname']}"/>
                </div>
                <div class="item">
                    <p>定金1：金额</p>
                    <input type="number" step="0.01" placeholder="" name="joinfee"  value="{$config['joinfee']}"/>
                </div>
                {/if}
                {if $system['jiage'] >0 }
                <div class="item">
                    <p>定金2：名称</p>
                    <input type="text" placeholder="" name="joinname2"  value="{$config['joinname2']}" />
                </div>
                <div class="item">
                    <p>定金2：金额</p>
                    <input type="number" step="0.01" placeholder="" name="joinfee2"  value="{$config['joinfee2']}" />
                </div>
                {/if}
                {if $system['jiage'] >1 }
                <div class="item">
                    <p>定金3：名称</p>
                    <input type="text" placeholder="" name="joinname3"  value="{$config['joinname3']}" />
                </div>
                <div class="item">
                    <p>定金3：金额</p>
                    <input type="number" step="0.01" placeholder="" name="joinfee3"  value="{$config['joinfee3']}" />
                </div>
                {/if}
                <div class="item">
                    <p>成团人数</p>
                    <input type="number" placeholder="" name="maxcountall"  value="{$config['maxcountall']}" />
                </div>
                {if $system['ruanjian'] == '4'}
                <div class="item">
                    <p>成团人数②</p>
                    <input type="number" placeholder="" name="maxcountall2"  value="{$config['maxcountall2']}" />
                </div>
                {/if}
                <div class="item line11">
                    <p style=" display:inline-block; margin-right:.2rem;">拼团模式</p>
                   <input class="showBar" name="tuanmode" value="0" {if $config['tuanmode']==0} checked="checked"{/if} type="radio"> &nbsp;&nbsp;正常拼团&nbsp;&nbsp;&nbsp;&nbsp;<input class="showBar" name="tuanmode" value="1" {if $config['tuanmode']==1} checked="checked"{/if} type="radio"> &nbsp;&nbsp;无限成团,团满依旧可以加入
                </div>
                <div class="item">
                    <p>活动限购人数</p>
                    <input type="number" step="0.01" placeholder="" name="renshu"  value="{$config['renshu']}" />
                </div>
            {/if}
            </div>

            <div class="s_items s_bg">
                <div class="s_title">
                    <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
                    交易凭证信息
                </div>
            </div>
            <div class="lmsz_cont">
                <div class="item">
                    <p>主办方(如需修改需联系工作人员）</p>
                    <input type="text" placeholder="主办方:12个汉字以内,不可包含标点符号" name="jubf"  value="{$theme['jubf']}" />
                </div>
                <div class="item">
                    <p>客服电话</p>
                    <input type="text" placeholder="" name="mobile"  value="{$theme['mobile']}" />
                </div>
                <div class="item">
                    <p>地址：{php echo $config['province'].$config['city'].$config['district'];}</p>
                    <input type="text" placeholder="" name="addresstxt"  value="{$config['addresstxt']}" />
                </div>
                <div class="item">
                    <p>时间文字描述</p>
                    <input type="text" placeholder="如：转单时间 选套系时间 感恩回馈日，为空时不显示" name="zhuandantxt"  value="{$config['zhuandantxt']}" />
                </div>
                <div class="item">
                    <p>转单开始时间</p>
                    <input type="date" name='zhuandanbegintime' value="{php echo date('Y-m-d',$config['zhuandanbegintime']);}">
                </div>
                <div class="item">
                    <p>转单结束时间</p>
                    <input type="date" name='zhuandanendtime'  value="{php echo date('Y-m-d',$config['zhuandanendtime']);}">
                </div>
                <div class="item">
                    <p>活动说明</p>
                    <input type="text" placeholder="如：定金不退不换 不可与其它活动重叠使用，建议不要用最终解释权归*所有，属霸王条款" name="zhuandantips"  value="{$config['zhuandantips']}" />
                </div>
            </div>



            <div class="lmsz_cont">
                <div style="text-align: center;">
                    <button class="l_btn" type="submit" >提交</button>
                </div>
            </div>
        </form>
            
        <div class="item" style="padding: 0.5rem; height: auto;">
            <p><span style="color:#55bdf4">活动主标题</span>：如：活动主标题,精而简,建议15字左右,尽量不要超27个汉字,不可包含特殊符号</p>
            <p><span style="color:#55bdf4">活动副标题</span>：活动副标题,建议40字以内,不可包含特殊符号</p>
            {if $system['ruanjian']==1 || $system['ruanjian']==3 && $system['softstyle']==4}
            <p><span style="color:#55bdf4">报名费</span>：如：价格为空为免费报名</p>
            {/if}
            <p><span style="color:#55bdf4">市场价</span>：如：市场价为空则不显示折扣价,即首图下方原价多少,几人团多少价的提示不显示</p>
            <p><span style="color:#55bdf4">时间文字描述</span>：如：转单时间 选套系时间 感恩回馈日，为空时不显示</p>
            <p><span style="color:#55bdf4">活动说明</span>：如：定金不退不换 不可与其它活动重叠使用，建议不要用最终解释权归*所有，属霸王条款</p>
        </div>
        <div class="item" style="line-height: 0.4rem;height: auto;">
            {$record['beizhu']}
        </div>

        <script>
            var calendardatetime = new lCalendar();
            calendardatetime.init({
                'trigger': '#demo2',
                'type': 'datetime'
            });
        </script>

{include file='yxworker/w_foot'}
